On SQL prompt type commands: sql> create database ccitdb; sql> use ccitdb; sql> create table accmaster(accno integer,name varchar(20),balance integer); sql> insert into accmaster values(1001,'Amit Jain',50000); sql> insert into accmaster values(1002,'Gopal Pandey',250000); sql> insert into accmaster values(1003,'Mona Mantri',10000);
import mysql.connector as sql try: conn=sql.MySQLConnection(user="root",password="admin",database="ccitdb") print("Connected...") conn.close() except Exception as e: print("Failed to Connect",e)
values are 5 and 10 values are 5 and 10 values are 5 and 10